package com.gupaoedu.mybatis.gp.plugin;

public class TestPlugin implements Interceptor {
    @Override
    public Object plugin(Object target) {
        return Plugin.wrap(target, this);
    }

    @Override
    public Object interceptor(Invocation invocation) throws Exception {
        System.out.println("before---------");
        return invocation.proceed();
    }
}
